#include <gpgme.h>
#include <locale.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>

#define GPG_BUFFER_LENGTH 2000

//Functions
void setup_gpg();
void encrypt_gpg(char * data, char * buffer);
void get_key(gpgme_key_t key, char * buffer);
void decrypt_gpg_dh(gpgme_data_t indh, char * buffer);
void decrypt_gpg_s(char * data, char * buffer);
void destroy_gpg();

//Globals
gpgme_ctx_t ctx; //GPG context, used for all gpg operations.
gpgme_key_t identity, recipient; //GPG keys for encryption.
char* password; //Password for local key.


